home *** CD-ROM | disk | FTP | other *** search
/ AMIGA-CD 2 / Amiga-CD - Volume 2.iso / ungepackte_daten / 1995 / 3 / 06b / mathscript / mathscript.ampk / MathScript / Install < prev    next >
Encoding:
Text File  |  1995-06-01  |  5.5 KB  |  129 lines

  1. (SET rexxhelp "This will copy some example ARexx scripts to your \"Rexx\" directory")
  2. (SET languagehelp "Beginnig with OS 2.1 MathScript can be localized to your local language. English is built-in and so always available.\nWith OS 2.1 the following languages are also available:\ndeutsch\nfrançais")
  3. (SET formulahelp "This will copy some example formulas to your \"Formulas\" directory")
  4. (SET iconhelp "You can choose between two kinds of icons: Standard icons and MagicWB icons.\nMagicWB installs 8-color icons styled like the original MagicWB icons.\nOnly use this option if you have MagicWB installed to your system.\n\nMagicWB ©Copyright Martin Huttenloher") 
  5. (SET startuphelp "MathScript needs an assign pointing to its directory to operate correctly. By selecting PROCEED an assign will be added to your User-Startup file to make this assign everytime you boot")
  6. (SET docshelp "The MathScript package includes AmigaGuide Documents in the following languages:\nenglish\ndeutsch")
  7. (SET doctype_help "AmigaGuide is the standard hypertext format.\nIt has to be displayed by either Multiview or AmigaGuide.\n\n")
  8. (SET NoGuide_help "If you select \"No\" the documentation will be installed in the AmigaGuide format. Otherwise a plain Ascii documentation will be installed!\n\n")
  9.  
  10. (SET ziel (ASKDIR (PROMPT "Where shall the directory 'MathScript' be created?") (HELP @askdir-help) (DEFAULT @default-dest) ))
  11.  
  12. (SET ziel (TACKON ziel "MathScript"))
  13.  
  14. (SET @default-dest ziel)
  15.  
  16. (COPYFILES (SOURCE "MathScript") (DEST ziel) (INFOS))
  17.  
  18. (COPYFILES (SOURCE "fonts") (ALL) (Dest (TACKON ziel "fonts")))
  19.  
  20. (COPYFILES (SOURCE "init.ps") (DEST ziel))
  21.  
  22. (COPYFILES (SOURCE "metrics") (DEST ziel))
  23.  
  24. (COPYFILES (SOURCE "PSFont") (DEST ziel))
  25.  
  26. (MAKEDIR (TACKON ziel "rexx"))
  27.  
  28.  
  29. (IF (ASKBOOL (PROMPT "Shall the example ARexx scripts be installed?") (HELP rexxhelp)) 
  30.     (COPYFILES (SOURCE "rexx") (DEST (TACKON ziel "rexx")) (ALL)))
  31.  
  32. (MAKEDIR (TACKON ziel "Formulas") (INFOS))
  33.  
  34. (IF (ASKBOOL (PROMPT "Shall the example formulas be installed?") (HELP formulahelp))
  35.     (COPYFILES (SOURCE "Formulas") (DEST (TACKON ziel "Formulas")) (ALL)))
  36.  
  37. (IF (>= (SUBSTR (GETENV "Workbench") 0 2) 38)    ; ab OS 2.1
  38.     (
  39.     (SET sprachen (ASKOPTIONS (PROMPT "Which additional languages shall be installed?") (HELP languagehelp)
  40.         (CHOICES "deutsch" "français") ))
  41.     (MAKEDIR (TACKON ziel "Catalogs"))
  42.     (IF (IN sprachen 0)
  43.         (COPYFILES (SOURCE "Catalogs/deutsch/MathScript.catalog") (DEST (TACKON ziel "Catalogs/deutsch"))))
  44.     (IF (IN sprachen 1)
  45.         (COPYFILES (SOURCE "Catalogs/français/MathScript.catalog") (DEST (TACKON ziel "Catalogs/français"))))
  46.     (COPYFILES (SOURCE "Catalogs/readme") (DEST (TACKON ziel "Catalogs")))
  47.     (COPYFILES (SOURCE "Catalogs/newlanguage.ct") (DEST (TACKON ziel "Catalogs")))
  48.     )
  49. )
  50.  
  51. (IF (EXISTS "sys:utilities/Multiview")
  52.     (SET def-tool "SYS:Utilities/Multiview")
  53.     (IF (EXISTS "sys:utilities/AmigaGuide")
  54.         (SET def-tool "SYS:Utilities/AmigaGuide")
  55.         (SET def-tool "more"))
  56. )
  57.  
  58. (SET docs (ASKOPTIONS (PROMPT "In which languages shall the Doc files be installed?") (HELP docshelp) 
  59.     (CHOICES "english" "deutsch")))
  60.  
  61. (IF (= @user-level 2) 
  62.     (SET type (ASKOPTIONS (PROMPT "Which type of document shall be installed?") (HELP doctype_help) (CHOICES "AmigaGuide" "Ascii") (DEFAULT 1)))
  63.     (
  64.     (IF (= def-tool "more")
  65.         (
  66.         (SET type (ASKBOOL (prompt "Neither Multiview nor AmigaGuide was found! Shall the documentation be installed as ASCII ?") (help (CAT NoGuide_help doctype_help)) (choices "Yes" "No")))
  67.         (IF (= type 1) (SET type 2) (SET type 1) )
  68.         )    
  69.         (SET type 1)
  70.         )
  71.     ))
  72.  
  73. (IF (= def-tool "more") (SET def-tool "AmigaGuide"))
  74.  
  75. ;type AND 010 -> DOK ; type AND 001 -> GUIDE 
  76.  
  77. (MAKEDIR (TACKON ziel "Docs") (INFOS))
  78.  
  79. (IF (IN docs 0)
  80.     (
  81.     (IF (IN type 0)        
  82.         (
  83.         (COPYFILES (SOURCE "Docs/english") (PATTERN "#?.guide") (DEST (TACKON ziel "Docs/english")) (INFOS))
  84.         (TOOLTYPE (DEST (TACKON ziel "Docs/english/MathScript.guide")) (SETDEFAULTTOOL def-tool))
  85.         (TOOLTYPE (DEST (TACKON ziel "Docs/english/FinalWriter.guide")) (SETDEFAULTTOOL def-tool))
  86.         ))
  87.     (IF (IN type 1)        
  88.         (
  89.         (COPYFILES (SOURCE "Docs/english") (PATTERN "#?.doc") (DEST (TACKON ziel "Docs/english")) (INFOS))
  90.         ))
  91.     ))
  92. (IF (IN docs 1)
  93.     (
  94.     (IF (IN type 0)        
  95.         (
  96.         (COPYFILES (SOURCE "Docs/deutsch") (PATTERN "#?.guide") (DEST (TACKON ziel "Docs/deutsch")) (INFOS))
  97.         (TOOLTYPE (DEST (TACKON ziel "Docs/deutsch/MathScript.guide")) (SETDEFAULTTOOL def-tool))
  98.         (TOOLTYPE (DEST (TACKON ziel "Docs/deutsch/FinalWriter.guide")) (SETDEFAULTTOOL def-tool))
  99.         ))
  100.     (IF (IN type 1)        
  101.         (
  102.         (COPYFILES (SOURCE "Docs/deutsch") (PATTERN "#?.dok") (DEST (TACKON ziel "Docs/deutsch")) (INFOS))
  103.         ))
  104.     ))
  105.  
  106. (SET icon (ASKCHOICE (PROMPT "Which icons shall be used?") (CHOICES "Standard" "MagicWB") (HELP iconhelp)))
  107.  
  108. (MAKEDIR (TACKON ziel "icons") (INFOS))
  109. (IF (= icon 0)
  110.     (
  111.     (COPYFILES (SOURCE "icons/def_FML.info") (DEST (TACKON ziel "icons")) (INFOS) )
  112.     (COPYFILES (SOURCE "icons/def_PS.info") (DEST (TACKON ziel "icons")) (INFOS) )
  113.     (COPYFILES (SOURCE "icons/MathScript.info") (DEST ziel ) (INFOS) )
  114.     )
  115.     (
  116.     (COPYFILES (SOURCE "icons/def_FML8.info") (DEST (TACKON ziel "icons")) (INFOS) )
  117.     (COPYFILES (SOURCE "icons/def_PS8.info") (DEST (TACKON ziel "icons")) (INFOS) )
  118.     (COPYFILES (SOURCE "icons/MathScript8.info") (DEST ziel) (NEWNAME "MathScript.info") (INFOS))
  119.     )
  120. )
  121.  
  122. (STARTUP "MathScript" (PROMPT "Assigns called 'MathScript:' and 'PSFonts:' are needed to use the program. Shall they be added to your User-Startup?") (HELP startuphelp) (COMMAND (CAT "Assign MathScript: " ziel) "\n" (CAT "Assign PSFonts: " (CAT "MathScript: " "add"))) )
  123. (MAKEASSIGN "MathScript" ziel)
  124. (MAKEASSIGN "PSFonts" ziel)
  125.  
  126.  
  127. (EXIT)
  128.  
  129.